<?php
/**
 * 退出登录
 */
class Logout extends BaseAction
{
	/**
	 * 初始化
	 */
	public function _init()
	{

	}

	/**
	 * 默认动作
	 */
	protected function _default()
	{
		session_start();
		session_unset();
		session_destroy();
		setcookie('fuid', '', -1, '/');
		$this->session()->writeSession('front_uid','');
		$this->session()->writeSession('front_uname','');
		$strHost = 'http://'.$_SERVER['SERVER_NAME'];
		$this->alertGoto('你已成功退出系统！',$strHost.'/','top');
	}
	
}
?>